<template>
  <view class="my-container">
    <my-login v-if="!token"></my-login>
    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
  /* import myLogin from '../../components/my-login/my-login.vue'
  import myUserinfo from '../../components/my-userinfo/my-userinfo.vue' */
  import badgeMix from '../../mixins/mixins.js'
  import {mapState} from 'vuex'
  export default {
    mixins:[badgeMix],
    data() {
      return {
        
      };
    },
    computed: {
      ...mapState('m_user',['token'])
    },
   /* components: {
      'my-login':myLogin,
      'my-userinfo':myUserinfo
    } */
  }
</script>

<style lang="scss">
page,.my-container {
  height: 100%;
}
</style>
